/*
 * @Descripttion: 资产目录与标签
 * @Author: 颜博骏 bojun@ssc-hn.com
 * @Date: 2024-07-16
 * @LastEditors: 颜博骏 bojun@ssc-hn.com
 * @LastEditTime: 2024-07-16
 */
import request from '/@/api/request'

/** 资产分类分页列表 */
export const requestAssetCatalogListByPage = (data: AssetCatalogTypes.IRequest) => {
  return request.post<IPaginationResponse<AssetCatalogTypes.IResponse>>('/business/asset/catalog/assetCatalogListByPage', data)
}

/** 资产分类启用停用 */
export const requestSwitchCatalog = (data: SwitchCatalogTypes.IRequest) => {
  return request.post<IBaseResponse<SwitchCatalogTypes.IResponse>>('/business/asset/catalog/switchCatalog', data)
}

/** 编辑资产分类 */
export const requestEditCatalog = (data: EditCatalogTypes.IRequest) => {
  return request.post<IBaseResponse<EditCatalogTypes.IResponse>>('/business/asset/catalog/updateCatalog', data)
}

/** 新增资产分类 */
export const requestAddCatalog = (data: AddCatalogTypes.IRequest) => {
  return request.post<IBaseResponse<AddCatalogTypes.IResponse>>('/business/asset/catalog/saveCatalog', data)
}
